<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8">
		<title>第一志愿</title>
	</head>
	<body>
		<div id="box">
			<!--公共头部组件-->
			<base-header></base-header>
			<!--中间主体路由-->
			<keep-alive>
				<router-view></router-view>
			</keep-alive>
			<!--公共脚部组件-->
			<base-footer></base-footer>
		</div>
		<script src="node_modules/jcy/jcy.js"></script>
		<script>
			! function() {
				//-------------------------配置js模块路径----------------------//
				jcy.setJs('..', { //配置node依赖包
					'vue-router': 'vue-router/dist/vue-router',
					'jquery': 'jquery/dist/jquery.min',
					'vue': 'vue/dist/vue.min'
				}).setJs('../../src/modules', { //配置js加载路径
					'img': 'img',
					'my': 'my',
					'base': 'base_back',
					'no-data': 'no-data'
				})
				jcy.setJs('../../src/router', { //配置路由路径
					'router': 'index'
				})
				//-------------------------配置css模块路径----------------------//
				jcy.setcss('../../src/style/css', { //配置css路径
					'index': 'index',
					'base': 'base.min',
					'style': 'style.min',
					'my-account': 'my-account',
					'infolib': 'infolib',
					'info': 'infocss/info',
					'policy-detail': 'policy-detail',
					'info-schoollist': 'infocss/info-schoollist',
					'policy': 'policy.min',
					'recommond': 'recommond',
					'load': 'special',
					'commom': 'commom.min',
					'vip': 'become-vip'
				})
				//-------------------------配置vue模板页面路径----------------------//
			
				jcy.setHtml('../../src/page', {
					'index': 'index',
					'recommond': 'recommond',
					'infolib': 'infolib',
					'load': 'load',
					'info': 'info',
					'vip': 'vip',
					'policy': 'policy',
					'agree': 'agree',
					'account': 'account'
				});
				//-------------------------配置vue组件路径----------------------//
				var basesrc = '../../src/components/';
				jcy.setHtml(basesrc + 'indextpl', { //主页面文件配置
					'index-carousel': 'index-carousel',
					'index-service': 'index-service',
					'index-morefunction': 'index-morefunction',
					'index-collage': 'index-collage',
					'index-read': 'index-read',
				}).setHtml(basesrc + 'recommondtpl', { //院校推荐页面文件配置
					'recommond-school': 'recommond-school',
					'recommond-seejob': 'recommond-seejob',
					'recommond-seemajor': 'recommond-seemajor',
					'recommond-test': 'recommond-test',
					'recommond-smart': 'recommond-smart',
					'recommond-report': 'recommond-report',
					'recommond-chooseSchool': 'recommond-chooseSchool'
				}).setHtml(basesrc + 'infolibtpl', { //信息库页面文件配置
					'before-and-after': 'before-and-after',
					'school-recommond': 'school-recommond',
					'rank-major': 'rank-major',
					'rank-school': 'rank-school',
					'school-area': 'school-area'
				}).setHtml(basesrc + 'infotpl', { //院校详情，专业详情
					'info-major-container': 'info-major-container',
					'info-school-container': 'info-school-container',
					'info-bg': 'info-bg',
					'info-schoollist': 'info-schoollist'
				}).setHtml(basesrc + 'basetpl', { //公共模块文件配置
					'base-areas': 'base-areas',
					'base-categorys': 'base-categorys',
					'base-condition': 'base-condition',
					'base-footer': 'base-footer',
					'base-header': 'base-header',
					'base-leftnav': 'base-leftnav',
					'base-schoollist': 'base-schoollist',
					'base-tips': 'base-tips',
					'base-topnav': 'base-topnav',
					'base-login': 'base-login',
					'base-register': 'base-register'
				})
				jcy.setHtml('../../src/svg', {
					'info-svg': 'info-svg'
				})
				var basetpls=['base-areas','base-categorys','base-condition','base-footer','base-header','base-leftnav','base-login','base-register','base-schoollist','base-tips', 'base-topnav'];
				var indextpls=['index-read', 'index-carousel','index-service', 'index-morefunction', 'index-collage'];
				var infolibtpls=['before-and-after','rank-school','rank-major','school-area','school-recommond']
				var recommondtpls=['recommond-school', 'recommond-chooseSchool','recommond-seejob', 'recommond-seemajor', 'recommond-test', 'recommond-smart', 'recommond-report'];
				var infotpls=['info-bg','info-major-container','info-school-container','info-schoollist'];
				var pages=['account','agree','index','info','infolib','load','policy','recommond','vip']
				var svgs=['info-svg'];
				var alls=svgs.concat(basetpls).concat(indextpls).concat(infolibtpls).concat(recommondtpls).concat(infotpls).concat(pages)
				jcy.use({
					js:['vue,img,base','jquery,my','vue-router,router'],
					css:['index','style','base','commom','recommond','infolib','load','info','vip','policy','agree','account'],
					html:alls
				},function(tpl){
					var cuts=jcy.cut(tpl['info-svg']);
					for(var key in cuts){
						Vue.component('info-icon'+key,{
							template:cuts[key]
						})
					}
					Vue.component('no-data', {
						props: ['no_data'],
						template: "<div class='no-data' v-show=no_data>暂无更多数据</div>"
					});
					console.log(jcy.require('base-header'))
					window.onload = function() {
						new Vue({
							el: '#box',
							router: router(),
							components: {
								'base-header': jcy.require('base-header'),
								'base-footer': jcy.require('base-footer')
							}
						})
					}
				});
			}();
		</script>
	</body>

</html>